package com.ivanceras.shared.meta;

import java.util.HashMap;

import com.ivanceras.shared.db.IModelDef;
import com.ivanceras.shared.db.ModelDef;

public class KernelModelMetaData{


	public HashMap<String, IModelDef> modelDefList = new HashMap<String, IModelDef>();


	void init0(){

		String   namespace0                               = "kernel";
		String   modelName0                               = "Krn_attribute";
		String[] attributes0                              = {"krn_attribute_id", "krn_attribute_uu", "name", "krn_model_id", "isprimary", "isunique", "isactive", "datatype"};
		String   generatedAttribute0                      = null;
		String[] primaryAttributes0                       = {"k_attribute_id"};
		String[] uniqueAttributes0                        = null;
		String[] dataTypes0                               = {"java.lang.Integer", "java.lang.String", "java.lang.String", "java.lang.Integer", "java.lang.Boolean", "java.lang.Boolean", "java.lang.Boolean", "java.lang.String"};
		String[] hasOne0                                  = {"krn_model"};
		String[] hasOneForeignColumn0                     = {"krn_model_id"};
		String[] hasMany0                                 = {"krn_hasmany", "krn_hasmanymany", "krn_hasmanymanyinvolvedmodel", "krn_hasone"};
		String[] hasManyForeignColumn0                    = {"krn_attribute_id", "krn_attribute_id", "krn_attribute_id", "krn_attribute_id"};
		String[] hasManyMany0                             = null;
		String[] hasManyManyInvolvedModel0                = null;
		String[] hasManyManyInvolvedModelForeignColumn0   = null;
		boolean  caseSensitive0                           = false;
		
		IModelDef modelDef0 = new ModelDef(namespace0, modelName0, attributes0,
					generatedAttribute0, dataTypes0, 
					primaryAttributes0, uniqueAttributes0, hasOne0,
					hasOneForeignColumn0, hasMany0, hasManyForeignColumn0, 
					hasManyMany0, hasManyManyInvolvedModel0, hasManyManyInvolvedModelForeignColumn0, caseSensitive0);
				
		modelDefList.put("Krn_attribute",modelDef0);


	}

	void init1(){

		String   namespace1                               = "kernel";
		String   modelName1                               = "Krn_hasmany";
		String[] attributes1                              = {"krn_hasmany_id", "krn_hasmany_uu", "krn_model_id", "krn_attribute_id", "isactive"};
		String   generatedAttribute1                      = null;
		String[] primaryAttributes1                       = {"k_hasmany_id"};
		String[] uniqueAttributes1                        = null;
		String[] dataTypes1                               = {"java.lang.Integer", "java.lang.String", "java.lang.Integer", "java.lang.Integer", "java.lang.Boolean"};
		String[] hasOne1                                  = {"krn_attribute", "krn_model"};
		String[] hasOneForeignColumn1                     = {"krn_attribute_id", "krn_model_id"};
		String[] hasMany1                                 = {};
		String[] hasManyForeignColumn1                    = {};
		String[] hasManyMany1                             = null;
		String[] hasManyManyInvolvedModel1                = null;
		String[] hasManyManyInvolvedModelForeignColumn1   = null;
		boolean  caseSensitive1                           = false;
		
		IModelDef modelDef1 = new ModelDef(namespace1, modelName1, attributes1,
					generatedAttribute1, dataTypes1, 
					primaryAttributes1, uniqueAttributes1, hasOne1,
					hasOneForeignColumn1, hasMany1, hasManyForeignColumn1, 
					hasManyMany1, hasManyManyInvolvedModel1, hasManyManyInvolvedModelForeignColumn1, caseSensitive1);
				
		modelDefList.put("Krn_hasmany",modelDef1);


	}

	void init2(){

		String   namespace2                               = "kernel";
		String   modelName2                               = "Krn_hasmanymany";
		String[] attributes2                              = {"krn_hasmanymany_id", "krn_hasmanymany_uu", "krn_model_id", "krn_attribute_id", "isactive"};
		String   generatedAttribute2                      = null;
		String[] primaryAttributes2                       = {"k_hasmanymany_id"};
		String[] uniqueAttributes2                        = null;
		String[] dataTypes2                               = {"java.lang.Integer", "java.lang.String", "java.lang.Integer", "java.lang.Integer", "java.lang.Boolean"};
		String[] hasOne2                                  = {"krn_attribute", "krn_model"};
		String[] hasOneForeignColumn2                     = {"krn_attribute_id", "krn_model_id"};
		String[] hasMany2                                 = {"krn_hasmanymanyinvolvedmodel"};
		String[] hasManyForeignColumn2                    = {"krn_hasmanymany_id"};
		String[] hasManyMany2                             = null;
		String[] hasManyManyInvolvedModel2                = null;
		String[] hasManyManyInvolvedModelForeignColumn2   = null;
		boolean  caseSensitive2                           = false;
		
		IModelDef modelDef2 = new ModelDef(namespace2, modelName2, attributes2,
					generatedAttribute2, dataTypes2, 
					primaryAttributes2, uniqueAttributes2, hasOne2,
					hasOneForeignColumn2, hasMany2, hasManyForeignColumn2, 
					hasManyMany2, hasManyManyInvolvedModel2, hasManyManyInvolvedModelForeignColumn2, caseSensitive2);
				
		modelDefList.put("Krn_hasmanymany",modelDef2);


	}

	void init3(){

		String   namespace3                               = "kernel";
		String   modelName3                               = "Krn_hasmanymanyinvolvedmodel";
		String[] attributes3                              = {"krn_hasmanymanyinvolvedmodel_id", "krn_hasmanymanyinvolvedmodel_uu", "krn_hasmanymany_id", "krn_attribute_id", "isactive"};
		String   generatedAttribute3                      = null;
		String[] primaryAttributes3                       = {"k_hasmanymanyinvolvedmodel_id"};
		String[] uniqueAttributes3                        = null;
		String[] dataTypes3                               = {"java.lang.Integer", "java.lang.String", "java.lang.Integer", "java.lang.Integer", "java.lang.Boolean"};
		String[] hasOne3                                  = {"krn_attribute", "krn_hasmanymany"};
		String[] hasOneForeignColumn3                     = {"krn_attribute_id", "krn_hasmanymany_id"};
		String[] hasMany3                                 = {};
		String[] hasManyForeignColumn3                    = {};
		String[] hasManyMany3                             = null;
		String[] hasManyManyInvolvedModel3                = null;
		String[] hasManyManyInvolvedModelForeignColumn3   = null;
		boolean  caseSensitive3                           = false;
		
		IModelDef modelDef3 = new ModelDef(namespace3, modelName3, attributes3,
					generatedAttribute3, dataTypes3, 
					primaryAttributes3, uniqueAttributes3, hasOne3,
					hasOneForeignColumn3, hasMany3, hasManyForeignColumn3, 
					hasManyMany3, hasManyManyInvolvedModel3, hasManyManyInvolvedModelForeignColumn3, caseSensitive3);
				
		modelDefList.put("Krn_hasmanymanyinvolvedmodel",modelDef3);


	}

	void init4(){

		String   namespace4                               = "kernel";
		String   modelName4                               = "Krn_hasone";
		String[] attributes4                              = {"krn_hasone_id", "krn_hasone_uu", "krn_model_id", "krn_attribute_id", "isactive"};
		String   generatedAttribute4                      = null;
		String[] primaryAttributes4                       = {"k_hasone_id"};
		String[] uniqueAttributes4                        = null;
		String[] dataTypes4                               = {"java.lang.Integer", "java.lang.String", "java.lang.Integer", "java.lang.Integer", "java.lang.Boolean"};
		String[] hasOne4                                  = {"krn_attribute", "krn_model"};
		String[] hasOneForeignColumn4                     = {"krn_attribute_id", "krn_model_id"};
		String[] hasMany4                                 = {};
		String[] hasManyForeignColumn4                    = {};
		String[] hasManyMany4                             = null;
		String[] hasManyManyInvolvedModel4                = null;
		String[] hasManyManyInvolvedModelForeignColumn4   = null;
		boolean  caseSensitive4                           = false;
		
		IModelDef modelDef4 = new ModelDef(namespace4, modelName4, attributes4,
					generatedAttribute4, dataTypes4, 
					primaryAttributes4, uniqueAttributes4, hasOne4,
					hasOneForeignColumn4, hasMany4, hasManyForeignColumn4, 
					hasManyMany4, hasManyManyInvolvedModel4, hasManyManyInvolvedModelForeignColumn4, caseSensitive4);
				
		modelDefList.put("Krn_hasone",modelDef4);


	}

	void init5(){

		String   namespace5                               = "kernel";
		String   modelName5                               = "Krn_model";
		String[] attributes5                              = {"krn_model_id", "namespace", "name", "generatedattribute", "casesensitive", "isactive", "krn_model_uu"};
		String   generatedAttribute5                      = null;
		String[] primaryAttributes5                       = {"k_model_id"};
		String[] uniqueAttributes5                        = null;
		String[] dataTypes5                               = {"java.lang.Integer", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.Boolean", "java.lang.Boolean", "java.lang.String"};
		String[] hasOne5                                  = {};
		String[] hasOneForeignColumn5                     = {};
		String[] hasMany5                                 = {"krn_attribute", "krn_hasmany", "krn_hasmanymany", "krn_hasone"};
		String[] hasManyForeignColumn5                    = {"krn_model_id", "krn_model_id", "krn_model_id", "krn_model_id"};
		String[] hasManyMany5                             = null;
		String[] hasManyManyInvolvedModel5                = null;
		String[] hasManyManyInvolvedModelForeignColumn5   = null;
		boolean  caseSensitive5                           = false;
		
		IModelDef modelDef5 = new ModelDef(namespace5, modelName5, attributes5,
					generatedAttribute5, dataTypes5, 
					primaryAttributes5, uniqueAttributes5, hasOne5,
					hasOneForeignColumn5, hasMany5, hasManyForeignColumn5, 
					hasManyMany5, hasManyManyInvolvedModel5, hasManyManyInvolvedModelForeignColumn5, caseSensitive5);
				
		modelDefList.put("Krn_model",modelDef5);


	}


	public KernelModelMetaData(){
		init0();
		init1();
		init2();
		init3();
		init4();
		init5();
	}
}